import numpy as np

# fileHandler = open("/home/st/ubuntu_data/dataset/gazebo/0317/training/trajectory/master.txt", "r")
#     # Get list of all lines in file
# listOfLines = fileHandler.readlines()
# row = listOfLines[0].strip().split(' ')
# print("my debug", row[0])
# # Close file
# fileHandler.close()

annotation_path = '/home/st/ubuntu_data/dataset/race/cource/test.txt'
with open(annotation_path) as f:
    lines = f.readlines()
annotation_line =  lines[0]
line = annotation_line.split()

for box in line[1:]:
    print(box)
    a = box.split(',')
    print(a)

class_center = np.array([np.array(list(map(int,box.split(',')))) for box in line[1:]])
print(class_center)
